<script type="text/javascript" src='{$base_dir}modules/dept_pharmacy/js/AJAX_EwhValuate.js'></script>
<script type="text/javascript">
var serviceFeeRateInpSignv = 1;
var insurranceRateInpSignv = 1;
{assign var="count" value=1}
    {literal}   
    $(document).ready(function () {
    	addDatePicker("#fromDateFilterdd",'#fromDateFiltermm','#fromDateFilteryyyy',false,false,true);
    	$("#fromDateFilterdd").val('01');
    	addDatePicker("#toDateFilterdd",'#toDateFiltermm','#toDateFilteryyyy',false,false,true); 
    	doSearchImTicket();  
    	$('#serviceFeeRateInpSign').bind('click', function() {
        	if (serviceFeeRateInpSignv == 1) {
        		$('#serviceFeeRateInpSign').val('-');
        		serviceFeeRateInpSignv =-1;
        	} else {
        		$('#serviceFeeRateInpSign').val('+');
                serviceFeeRateInpSignv =1;            	
        	}       	
        	
        });
    	$('#insurranceRateInpSign').bind('click', function() {
            if (insurranceRateInpSignv == 1) {
                $('#insurranceRateInpSign').val('-');
                insurranceRateInpSignv =-1;
            } else {
                $('#insurranceRateInpSign').val('+');
                insurranceRateInpSignv =1;               
            }           
            
        }); 
        
    });    
    {/literal}        
</script>
<div id="searchValuate">
<div class='documentListHeader'>   
  <span > {translate}Valuate drug/material{/translate} </span>
</div>
<br>
<div  class="form_container" style="float: none; ">
<span id="seachStatusMessage" style="color: red; font-style: italic;">&nbsp;</span>
    <form id="filterForm" action="">
		    <table cellspacing="0" cellpadding="0" style='width: 100%;'>
		        <tr>
		            <td>
		                <span class="label">{translate}Import ticket code{/translate}</span>
		                <input type="text" size="20" name="imTicketCode" value="" id="imTicketCodeFilter" />
		            </td>            
		            <td >
		                <span class="label">{translate}From date{/translate}</span>
		                <input onkeypress="return allowEnterIntegerNum(event,true)" name="fromDate{$datePart_0}" id="fromDateFilter{$datePart_0}" type="text" value="" style="width: 30px;">
		                <input onkeypress="return allowEnterIntegerNum(event,true)" name="fromDate{$datePart_1}" id="fromDateFilter{$datePart_1}" type="text" value="" style="width: 30px;">
		                <input onkeypress="return allowEnterIntegerNum(event,true)" name="fromDate{$datePart_2}" id="fromDateFilter{$datePart_2}" type="text" value="" style="width: 56px;">
		                <br /><span class="label" style="width: 21px; color: #AAA;">({$datePart_0}-{$datePart_1}-{$datePart_2})</span>
		            </td>
		            <td >
                        <span class="label">{translate}To date{/translate}</span>
                        <input onkeypress="return allowEnterIntegerNum(event,true)" name="toDate{$datePart_0}" id="toDateFilter{$datePart_0}" type="text" value="" style="width: 30px;">
                        <input onkeypress="return allowEnterIntegerNum(event,true)" name="toDate{$datePart_1}" id="toDateFilter{$datePart_1}" type="text" value="" style="width: 30px;">
                        <input onkeypress="return allowEnterIntegerNum(event,true)" name="toDate{$datePart_2}" id="toDateFilter{$datePart_2}" type="text" value="" style="width: 56px;">
                        <br /><span class="label" style="width: 21px; color: #AAA;">({$datePart_0}-{$datePart_1}-{$datePart_2})</span>
                    </td>
                    <td>
	                    <div style="text-align: right;"><a class="imgBtn" id="searchBtn"
					    onclick="doSearchImTicket()"><img src="../images/search.png"
					    title="{translate}Search{/translate}" /></a>
					    </div>
                    </td>   
		        </tr>        
		    </table>	    
    </form>      
</div>


<div style="margin-top: 10px; width: 100%;" class="lab_grid">
<div class="h_div">
<table cellspacing="0" cellpadding="0">
    <thead>
        <tr>
            <th style="width: 30px;">{translate}Order number{/translate}</th>
            <th style="width: 120px;">{translate}Ticket code{/translate}</th>
            <th style="width: 145px;">{translate}Date{/translate}</th>
            <th style="width: 75px;">{translate}Item type{/translate}</th>
            <th style="width: 100px;">{translate}User input{/translate}</th>
            <th style="width: 100px;">{translate}Provider{/translate}</th>
            <th style="width: 50px;">{translate}Vat%{/translate}</th>
            <th style="width: 100px;">{translate}Note{/translate}</th>            
            <th style="border-right: none;" class="last">&nbsp;&nbsp;&nbsp;</th>            
        </tr>
    </thead>
</table>
</div>
<div class="b_div" style="height: 300px; border-top: 1px solid #DDDDDD;" >
<table id="imticketTable" cellspacing="0" cellpadding="0" border="0" >
    <tbody>
    </tbody>
</table>
</div>
</div>
<div>
<br>
<br>
</div>
</div>

<div id="valuatePanel" style="display: none;">
</div>
<div id="phaValuateLoaderDiv" style="display: none; position: fixed; top: 0px; left: 0px; height: 100%; width: 100%; z-index: 1000">
    <div style="overflow: hidden; background-color: #000; position: absolute; top: 0px; left: 0px; height: 100%; width: 100%; opacity: 0.2;">
    </div>
    <div style='padding: 6px 0px 0px 6px; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; background: #F5F5F5; border: 3px solid #CCC; margin-left: -20px; margin-top: -30px;'>
        <img src="{$base_uri}/images/ajax-loader.gif"/>
    </div>
</div>

